<template>
  <el-switch
    v-model="value"
    active-text="列表视图">
  </el-switch>
</template>

<script>
    import {reactive, toRefs} from "vue";

  export default {
    name: 'ViewSwitch',
      setup(){
        const data = reactive({
            value: true
        })
          return {
            ...toRefs(data)
          }
      }

  }
</script>

<style scoped>

</style>
